/*
 *  Test Start 本地数据模拟测试
 *  sam.huang
 */
$(function(){ 
  	initLocal();
});

function submitQuestion(qa){
	info("[ipad-live][test] submit qa:", qa);
}

var staticSrcPath = staticPrefix + "/biz/media/";

var initLocal = function(){
	
	var userAgent = navigator.userAgent.toLowerCase();
	this.isFirefox = /firefox/.test(userAgent);
	this.isOpera   = /opera/.test(userAgent);
	this.isSafari  = /webkit/.test(userAgent);
	this.isIE      = /msie/.test(userAgent) && !/opera/.test(userAgent);
	this.isIE6     = /msie 6/i.test(navigator.appVersion);
	this.browserVersion = (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1];
	this.isIElt8   = this.isIE && (this.browserVersion-0 < 8); 
	
	//last-time-race-start.ogg | launch.m4v | last-time-race-start.mp4 | http://www.w3schools.com/html5/mov_bbb.ogg
	if(this.isFirefox){
		$("#video").attr("src", staticSrcPath+"last-time-race-start.ogg");
	}else{
		$("#video").attr("src", staticSrcPath+"last-time-race-start.mp4");
	}
	info("[ipad-vod.test.base][initLocal]video src:", $("#video").attr("src"));
	
	$("#about").bind("click", function(){
		enterFullscreen($("#videoWrap"));
	});
	
	$("#videoWrap").bind("click", function(){
		existFullscreen($("#videoWrap"));
	});
	
};

/* Test End */
